package com.example.newwork

import androidx.lifecycle.LiveData
import kotlinx.coroutines.flow.Flow
import retrofit2.http.GET


interface MainApi {
    @GET(MainContains.ARTICLE_URL)
     fun getFlowArticles(): Flow<Response<ArticleBean>>

     @GET(MainContains.ARTICLE_URL)
     suspend fun getLiveDataArticles():LiveData<Response<BaseRespond<ArticleBean>>>


    @GET(MainContains.ARTICLE_URL)
    suspend fun getCommonArticles():Response<BaseRespond<ArticleBean>>
}